apiVersion: v1
kind: ConfigMap
metadata:
  name: log-shipper-config
  namespace: d8-{{ $.Chart.Name }}
  {{- include "helm_lib_module_labels" (list . (dict "app" $.Chart.Name)) | nindent 2 }}
data:
  defaults.json: |
    {
      "data_dir": "/vector-data",
      "expire_metrics_secs": 60,
      "api" : {
        "address" : "127.0.0.1:8686",
        "enabled" : true,
        "playground" : false
      },
      "log_schema": {
        "host_key": "host",
        "message_key": "message",
        "source_type_key": "source_type",
        "timestamp_key": "timestamp"
      },
      "sources": {
        "internal_metrics": {
          "type": "internal_metrics"
        }
      },
      "sinks": {
        "prometheus_sink": {
          "type": "prometheus_exporter",
          "inputs": [
            "internal_metrics"
          ],
          "address": "127.0.0.1:9090",
          "suppress_timestamp": true
        }
      }
    }
